import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { RouterModule } from '@angular/router';
import { FormsModule } from '@angular/forms';
import { ProjectComponent } from './project.component';

@NgModule({
  imports: [
    CommonModule,
    NgZorroAntdModule,
    FormsModule,
    RouterModule.forChild([
      {
        path: ':projectId', component: ProjectComponent,
        children: [
          { path: 'survey', loadChildren: './survey/survey.module#SurveyModule' }, //项目概况
          { path: 'modelList', loadChildren: './model-list/model-list.module#ModelListModule' }, //模型列表
          { path: 'model', loadChildren: './model-page/model-page.module#ModelPageModule' }, //模型界面
          { path: '', loadChildren: './drawings/drawings.module#DrawingsModule' }, //二维图纸列表
          { path: 'self-check', loadChildren: './self-check/self-check.module#SelfCheckModule' }, // 自检
          { path: 'inspection', loadChildren: './inspection/inspection.module#InspectionModule' }, // 巡检
          { path: 'file-manage', loadChildren: './file-manage/file-manage.module#FileManageModule' }, // 文件管理
          { path: 'project-member', loadChildren: './project-member/project-member.module#ProjectMemberModule' }, // 项目成员
          { path: 'smart-site', loadChildren: './smart-site/smart-site.module#SmartSiteModule' }, // 智慧工地
        ]
      }
    ])
  ],
  declarations: [ProjectComponent]
})
export class ProjectModule { }
